/* 根容器相关保持原有逻辑 */
.content {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #253342;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.game-container {
    width: 100%;
    max-width: 1920px;
    padding: 0 10px;
    box-sizing: border-box;
}

/* 无限滚动容器样式，确保滚动行为正常 */
.infinite-scroll-container {
    width: 100%;
}

.gameList {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0;
}

.game {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #334155;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.game:hover {
    transform: translateY(-5px);
}

.game-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 40%;
    padding: 10px;
    box-sizing: border-box;
}

.game-left img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}

.gameName {
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-type {
    width: 30%;
    padding: 0 10px;
    color: #94a3b8;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-cart {
    width: 20%;
    background-color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game-cart:hover {
    background-color: #2563eb;
}

/* 响应式适配：小屏幕堆叠 */
@media (max-width: 768px) {
    .game {
        flex-direction: column;
        align-items: flex-start;
    }
    .game-left, .game-type, .game-cart {
        width: 100%;
        margin-bottom: 10px;
    }
}

